<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>编辑文章</title>
    <script type="text/javascript" src="__ROOT__/source/ueditor/editor_config.js"></script>
    <script type="text/javascript" src="__ROOT__/source/ueditor/editor_all.js"></script>
</head>
<body>
<form action="" method="POST">
    <p>文章标题 : <input type="text" name="title" value="{$art.title}" style="width: 300px;" /> </p>
    <p>文章关键字 : <input type="text" name="keywords" value="{$art.keywords}" style="width: 300px;" /> </p>
    <p>文章描述：<br/><textarea name="arinfo" cols="60" rows="5">{$art.arinfo}</textarea></p>
    <p>文章状态：<input type="radio" name="state" value="1" <eq name="art.state" value="1">checked</eq> /> 开启 | <input type="radio" name="state" value="0" <eq name="art.state" value="0">checked</eq> /> 关闭 </p>
    <p>文章来源：<input type="text" name="source" value="{$art.source}" /> | 文章作者：<input type="text" name="writer"  value="{$art.writer}" /> </p>
    <p>所属栏目：
        <select name="cid">
            <volist name="cates" id="cate">
                <option value="{$cate.id}" <eq name="cate.id" value="$art.cid">selected</eq> >{$cate.cname}</option>
            </volist>
        </select>
    </p>
    <p>发布日期：<input type="text" name="pubdate" value="{$art.pubdate|date='Y-m-d H:i:s',###}" /> </p>
    <p>
        文章内容:<br/>
        <textarea name="body" id="myEditor">{$art.body}</textarea>
        <script type="text/javascript">
            var editor = new UE.ui.Editor();
            editor.render("myEditor");
            //1.2.4以后可以使用一下代码实例化编辑器
            //UE.getEditor('myEditor')
        </script>
    </p>
    <input type="hidden" value="{$art.id}" name="id" />
    <button type="submit">提交</button>
</form>

</body>
</html>